﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="QuerySCustomerByQuote.aspx.cs" Inherits="BySoft.Web.Site.ComPage.QuerySCustomerByQuote" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlace" runat="server">
    <script language="javascript" type="text/javascript">
        var last = null;
        function judge(obj) {
            if (last == null) {
                last = obj.id;
            }
            else {
                var lo = document.getElementById(last);
                lo.checked = "";
                last = obj.id;
            }
            obj.checked = "checked";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EmptyMasteCPH" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--查询条件--%>
            <div class="searchTable">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <th class="left2">客户编号：
                        </th>
                        <td class="right2">
                            <asp:TextBox CssClass="fullWidth" ID="txtCustomerID" runat="server"></asp:TextBox>
                        </td>
                        <th class="left2">客户名称：
                        </th>
                        <td class="right2">
                            <asp:TextBox CssClass="fullWidth" ID="txtCustomerName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <div class="btnStylef">
                    <label class="btnStyleb png_bg">
                        <asp:Button Text="查询" runat="server" ID="btnQuery" OnClick="btnQuery_Click" />
                    </label>
                </div>
            </div>
            <%--列表--%>
            <div class="tableStyle">
                <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                    AutoGenerateColumns="false" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderStyle Width="30" />
                            <HeaderTemplate>
                                选择
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:RadioButton ID="rbSelect" runat="server" GroupName="rdoxz" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                客户编号
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblCustomerID" runat="server" Text='<%#Eval("CustomerID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                客户名称
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("CustomerName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                公司地址
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblCompanyAddr" runat="server" Text='<%#Eval("Addr") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                客户来源
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblCustomerFromName" runat="server" Text='<%#Eval("CustomerFromName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                联系人
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblContactName" runat="server" Text='<%#Eval("ContactName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                电话
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblMobile" runat="server" Text='<%#Eval("Mobile") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:SGridView>
                <div style="padding-top: 5px" align="right">
                    <cc1:PagingControl ID="pcData" runat="server" OnPageIndexClick="pcData_PageIndexClick" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="tableStyle2">
        <div class="controlBar" style="padding-right: 300px;">
            <label class="btnStylec png_bg">
                <asp:Button ID="btnOk" CssClass="png_bg" runat="server" Text="确认" OnClick="btnOk_Click" /></label>
            <label class="btnStylec png_bg">
                <input id="btnBack" type="button" class="png_bg" value="取消" onclick="CloseTopDialog();" /></label>
        </div>
    </div>
</asp:Content>
